datapay
datapay copied to clipboard
Error 66: insufficient priority
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.