broadcastTransaction

Broadcast a transaction to the network. POST only.

Request: requestType is broadcastTransaction transactionBytes is the bytecode of a signed transaction (optional) transactionJSON is the transaction object (optional if transactionBytes provided)

Response:

(N) requestProcessingTime is the API request processing time (in millisec) (S) fullHash is the full hash of the signed transaction (S) transaction is the transaction ID

Example:

Request:

http://localhost:801/BEAM?requestType=broadcastTransaction&transactionBytes=00109cce3f071800a61325eec9e83d7cac55544b8eca8ea8034559bafb5834b8a5d3b6d4efb85f12ae2527ec7e55f1eb00e1f5050000000018370b00000000000000000000000000000000000000000000000000000000000000000000000000bed76407665ef3dbe24c78041a497e9e603076b8adf90353effe5218c83f69078adaec89a2f2e1ffb7bc835b1c21cf8300185cd4f3d7df52be156e61069d569d0000000006ac0700769afc7e6215e488

Response:

{ “requestProcessingTime”: 4, “fullHash”: “d663f7fe8bf215906b29838ade5d860b2229188acea7827a737d823253b488db”, “transaction”: “10382471199064548310” }

Note: If the transaction has already been broadcast, the following INFO notice appears in the console output and log file: Transaction 15200507403046301754 already in blockchain (or unconfirmed pool), will not broadcast again.

Last updated