datapay icon indicating copy to clipboard operation
datapay copied to clipboard

Error 66: insufficient priority

Open dejankorez opened this issue 4 years ago • 0 comments

Hi,

I am trying to send image in hash format with dataPay.send example but receive an error:

code: 1, message: 'the transaction was rejected by network rules.\n' + '\n' + '66: insufficient priority\n' +

I create transaction with:

const tx = this.createTx(message);
dataPay.send(tx, (err: object, res: string) => {
       if (err) {
            return reject(err);
       }
       return resolve(res);
});
private createTx(message: Buffer): TxTransaction {
        const bufferInHex = message.toString('hex');
        return {
            safe: true,
            data: [bufferInHex],
            pay: {
                key: this.privateKey,
                rpc: this.rpcApi, // 600
                fee: this.rpcFee, // https://api.mattercloud.net
            },
        };
    }

Any hint?

Thank you.

dejankorez avatar Jun 02 '20 05:06 dejankorez