We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can not delegate my resources to other address it failed with error:
Contract validate error : Account[419de6e2a685c61bfc6dc6049f9e91272a06b0cb62] not exists
my code is below:
const tronWeb = new TronWeb({ "https://api.trongrid.io/", privateKey: senderPrivateKey, // 用代理账户的私钥签名 }); const transaction = await tronWeb?.transactionBuilder?.undelegateResource( amount * 1e6, // 代理的能量对应的 TRX 数量(以 sun 为单位) receiverAddress, // 被代理账户的地址 resource, // 资源类型(能量 ENERGY 或带宽 BANDWIDTH) address, // 代理账户的地址(默认从私钥中获取) ); // 签名交易 const signedTransaction = await tronWeb?.trx?.sign(transaction); // 广播交易 const receipt = await tronWeb?.trx?.sendRawTransaction(signedTransaction);
my Address is TDb6PSHZ5rPe1X5TXcr49RPMbSNQV2h9aC , to address is TQN7gNXZYHxgNUSwc1TZm25bwKsEMkYm5K
TDb6PSHZ5rPe1X5TXcr49RPMbSNQV2h9aC
TQN7gNXZYHxgNUSwc1TZm25bwKsEMkYm5K
The text was updated successfully, but these errors were encountered:
Please use tronWeb.transactionBuilder.delegateResource.
tronWeb.transactionBuilder.delegateResource
Sorry, something went wrong.
No branches or pull requests
I can not delegate my resources to other address
it failed with error:
my code is below:
my Address is
TDb6PSHZ5rPe1X5TXcr49RPMbSNQV2h9aC
, to address isTQN7gNXZYHxgNUSwc1TZm25bwKsEMkYm5K
The text was updated successfully, but these errors were encountered: