platform.issueTx

Issue a transaction to the Platform Chain.

Signature​

platform.issueTx({
    tx: string,
    encoding: string, //optional
}) -> {txID: string}
  • tx is the byte representation of a transaction.

  • encoding specifies the encoding format for the transaction bytes. Can be either "cb58" or "hex". Defaults to "cb58".

  • txID is the transaction’s ID.

Example

Request

curl -X POST --data '{
    "jsonrpc": "2.0",
    "method": "platform.issueTx",
    "params": {
        "tx":"111Bit5JNASbJyTLrd2kWkYRoc96swEWoWdmEhuGAFK3rCAyTnTzomuFwgx1SCUdUE71KbtXPnqj93KGr3CeftpPN37kVyqBaAQ5xaDjr7wVBTUYi9iV7kYJnHF61yovViJF74mJJy7WWQKeRMDRTiPuii5gsd11gtNahCCsKbm9seJtk2h1wAPZn9M1eL84CGVPnLUiLP",
        "encoding": "cb58"
    },
    "id": 1
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/P

Result

{
    "jsonrpc": "2.0",
    "result": {
        "txID": "G3BuH6ytQ2averrLxJJugjWZHTRubzCrUZEXoheG5JMqL5ccY"
    },
    "id": 1
}

Last updated