Skip to content

Commit

Permalink
Merge pull request #457 from BitGo/WP-2200-add-avaxc-broadcast-readme
Browse files Browse the repository at this point in the history
docs(root): add avax-c broadcast tx readme
  • Loading branch information
alebusse authored Jul 12, 2024
2 parents 0ab1b67 + 9310f58 commit fadf62c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions AVAX-C.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Broadcast a transaction to the Avalanche C-Chain (AVAX-C) by constructing an API request to a full node RPC endpoint.

```shell
export REQUEST_URL="<REQUEST_URL>"
# Testnet: https://api.avax-test.network/ext/bc/C/rpc
# Mainnet: https://api.avax.network/ext/bc/C/rpc
# Full node RPC endpoints: https://docs.avax.network/tooling/rpc-providers

curl -X POST $REQUEST_URL \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_sendRawTransaction",
"params": ["0x + tx"]
}'
# find "tx" in your downloaded JSON
# add the “0x” prefix to the “tx” if it's not already present
```

0 comments on commit fadf62c

Please sign in to comment.