LogoLogo
  • Introduction
  • Radius testnet access
  • Quickstart
    • Command line
    • Go
    • JavaScript
    • Postman
    • Python
    • Rust
    • TypeScript
  • How to
    • Create a Private Key
    • Get testnet ETH tokens
    • Deploy a smart contract
  • Concepts
    • Ethereum transaction types
  • Tutorials
  • Radius SDKs
  • API Reference
    • eth_blockNumber
    • eth_call
    • eth_chainId
    • eth_createAccessList
    • eth_estimateGas
    • eth_feeHistory
    • eth_gasPrice
    • eth_getBalance
    • eth_getBlock
    • eth_getBlockByHash
    • eth_getBlockByNumber
    • eth_getBlockTransactionCountByHash
    • eth_getBlockTransactionCountByNumber
    • eth_getCode
    • eth_getLogs
    • eth_getStorageAt
    • eth_getTransactionByBlockHashAndIndex
    • eth_getTransactionByBlockNumberAndIndex
    • eth_getTransactionByHash
    • eth_getTransactionCount
    • eth_getTransactionReceipt
    • eth_sendRawTransaction
    • eth_sendTransaction
    • net_version
    • web3_clientVersion
    • web3_sha3
    • web3_getTransactionCount
  • Release Notes
  • Whitepaper
  • Radius Discord
Powered by GitBook
On this page
  • Parameters
  • Returns
  • Example

Was this helpful?

Edit on GitHub
  1. API Reference

eth_sendRawTransaction

Previouseth_getTransactionReceiptNexteth_sendTransaction

Last updated 4 months ago

Was this helpful?

Submits a pre-signed transaction to Radius.

Parameters

transaction data: [Required] The signed transaction data.

Returns

32 bytes. The transaction hash, or the zero hash if the transaction is not yet available. When you create a contract, use to get the contract address after the transaction has been processed (which should take less than a second).

Example

Request

curl https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '
{
  "jsonrpc": "2.0",
  "method": "eth_sendRawTransaction",
  "params": [
    "0xf901968080830493e08080b901456080604052348015600e575f5ffd5b506101298061001c5f395ff3fe6080604052348015600e575f5ffd5b50600436106030575f3560e01c806360fe47b11460345780636d4ce63c14604c575b5f5ffd5b604a60048036038101906046919060a9565b6066565b005b6052606f565b604051605d919060dc565b60405180910390f35b805f8190555050565b5f5f54905090565b5f5ffd5b5f819050919050565b608b81607b565b81146094575f5ffd5b50565b5f8135905060a3816084565b92915050565b5f6020828403121560bb5760ba6077565b5b5f60c6848285016097565b91505092915050565b60d681607b565b82525050565b5f60208201905060ed5f83018460cf565b9291505056fea2646970667358221220c9d450006b906ff115167c8c7bba9154cc401a7b54810387f4dd053155e2b19664736f6c634300081c003383255a45a092b2aa5f92eb91535430e4e6063d8b5b85e09f108cb176f6734761e56f461e7ca0150910a8aa56e4670c2f116b6f189d1dac3d055ce2075c9fbb3d0d7c6e09bb33"
  ],
  "id": 1
}
'

Response

{
  "jsonrpc": "2.0",
  "result": "0x981ae62ff26ae150f69ec3073e551c84cf5209c49c481b3df494ec68931f7960",
  "id": 1
}

Request

cast publish 0xf901968080830493e08080b901456080604052348015600e575f5ffd5b506101298061001c5f395ff3fe6080604052348015600e575f5ffd5b50600436106030575f3560e01c806360fe47b11460345780636d4ce63c14604c575b5f5ffd5b604a60048036038101906046919060a9565b6066565b005b6052606f565b604051605d919060dc565b60405180910390f35b805f8190555050565b5f5f54905090565b5f5ffd5b5f819050919050565b608b81607b565b81146094575f5ffd5b50565b5f8135905060a3816084565b92915050565b5f6020828403121560bb5760ba6077565b5b5f60c6848285016097565b91505092915050565b60d681607b565b82525050565b5f60208201905060ed5f83018460cf565b9291505056fea2646970667358221220c9d450006b906ff115167c8c7bba9154cc401a7b54810387f4dd053155e2b19664736f6c634300081c003383255a45a092b2aa5f92eb91535430e4e6063d8b5b85e09f108cb176f6734761e56f461e7ca0150910a8aa56e4670c2f116b6f189d1dac3d055ce2075c9fbb3d0d7c6e09bb33 \
  --rpc-url https://rpc.testnet.tryradi.us/<YOUR-RPC-ENDPOINT>

Response

{
  "status": "0x1",
  "cumulativeGasUsed": "0x0",
  "logs": [],
  "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "type": "0x0",
  "transactionHash": "0x44b4f2d853d2c02357ec1ab3aae6a2cea2178dd66ca916996173fbba9d507e2f",
  "transactionIndex": "0x0",
  "blockHash": "0x000000000000000000000000000000000003b40e08e8d4e6258de4642ea24fd0",
  "blockNumber": "0x194afd2f58d",
  "gasUsed": "0x1cba7",
  "effectiveGasPrice": "0x0",
  "blobGasUsed": "0x0",
  "blobGasPrice": "0x0",
  "from": "0xbf904c2fa08dcaa6b0b96c53d8bba11a135ce3f1",
  "to": "0x0000000000000000000000000000000000000000",
  "contractAddress": "0xaaa1d13ec00b07ebb48d2c54fc9eb8011b3169f3",
  "data": "0x6080604052348015600e575f5ffd5b506101298061001c5f395ff3fe6080604052348015600e575f5ffd5b50600436106030575f3560e01c806360fe47b11460345780636d4ce63c14604c575b5f5ffd5b604a60048036038101906046919060a9565b6066565b005b6052606f565b604051605d919060dc565b60405180910390f35b805f8190555050565b5f5f54905090565b5f5ffd5b5f819050919050565b608b81607b565b81146094575f5ffd5b50565b5f8135905060a3816084565b92915050565b5f6020828403121560bb5760ba6077565b5b5f60c6848285016097565b91505092915050565b60d681607b565b82525050565b5f60208201905060ed5f83018460cf565b9291505056fea2646970667358221220c9d450006b906ff115167c8c7bba9154cc401a7b54810387f4dd053155e2b19664736f6c634300081c0033",
  "gasLimit": "0x493e0",
  "hash": "0x981ae62ff26ae150f69ec3073e551c84cf5209c49c481b3df494ec68931f7960",
  "nonce": "0x0",
  "r": "0x2a4e2bc994b0fcfedc3b55a10c690edbb71c24eb43f0ad48d6399413c4326521",
  "root": "0x0000000000000000000000000000000000000000000000000000000000000000",
  "s": "0x2a29e44c06c7c962d65576f1813e4f319407dc1d1196b6fefa08e54376ac40d9",
  "v": "0x255a45",
  "value": "0x0"
}
eth_getTransactionReceipt