Home

Sign a transaction

deprecated
POST
https://vinu.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Signs a transaction locally with the private key of the specified account.

Not usable on this endpoint.

eth_signTransaction signs with a key from the node's keystore. Our nodes hold no keys - eth_accounts returns [] - so every call fails with -32000 unknown account. Sign the transaction on your side and broadcast it with eth_sendRawTransaction.

Body

application/json
jsonrpcstringrequired
methodstringeth_signTransactionrequired
paramsArray<object>required

Array with a single object representing the transaction to sign.

Show child attributes
fromstringrequired

The address of the account that will sign the transaction.

tostring

The destination address of the transaction.

gasstring

Gas limit for the transaction, as a hex string.

gasPricestring

Gas price in wei, as a hex string.

valuestring

Amount of wei to send, as a hex string.

datastring

Data payload of the transaction, hex encoded.

noncestring

Nonce of the transaction, as a hex string.

chainIdinteger

The chain ID to protect against replay attacks.

idintegerrequired

Response

200OK

Not reachable on this endpoint: the call always fails with -32000 unknown account

405Method Not Allowed

Method not served by this endpoint. The body is the plain-text string Method Not Allowed, not JSON.

422Unprocessable Entity

Missing API key - the api-key header was absent. The body is the plain-text string Missing API_key, not JSON.