Hot answers tagged

1

You need to add public key to JsSignatureProvider.availableKeys (string[]) and private key to JsSignatureProvider.keys (Map<string,string>) by public key. var { Numeric } = require('eosjs'); var { JsSignatureProvider } = require('eosjs/dist/eosjs-jssig'); var ecc = require('eosjs-ecc'); var privateKeys = ['...']; var sp = new JsSignatureProvider(...


1

Use eosjs-ecc or eosjs-keygen to generate key pairs.


1

You need to authorize the transaction with signatures for both accounts. 1. The ressource-paying-account and 2. the acting account. Assuming that lionstester1010 should pay for the transaction but lionstester1011 is the acting account/the sender of the token: actions: [{ account: 'eosio.token', name: 'transfer', authorization: [{ actor: '...


1

Calling history/get_transaction will return the transaction with all the data belonging to it. You can find inline-traces in the "traces"-section of the returned json. But be aware, the history-plugin has been deprecated so the endpoint is likely to change.


1

You addPrivateKey is pointing to a public key instead of a private one. JSSignatureProvider expect a private key


1

Here are the links: Ecc in Swift : https://github.com/EOSIO/eosio-swift-ecc Ecc in Java : https://github.com/EOSTribe/java-ecc/tree/master/app/src/main/java/io/plactal/ecc


Only top voted, non community-wiki answers of a minimum length are eligible