Broadcasts
Example of Using the Avalanche API
To create and broadcast a transaction on the Avalanche network, you can use the following cURL command:
curl --request POST \
--url https://api.figment.io/avalanche/broadcast \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here' \
--data '{"network":"fuji"}'
API Schema
Network
- Type: string
- Enum:
fuji,mainnet - Required: Yes
- Description: Avalanche network to build transaction for, either mainnet or fuji.
Signed Payload
- Type: string
- Required: Yes
- Description: Signature from signing the
signing_payload.
Unsigned Transaction Serialized
- Type: string
- Required: Yes
- Description:
unsigned_transaction_serializedfrom the transaction response.
Response
201 Transaction Created
- Type: object
- Properties:
- transaction_hash:
- Type: string
- Description: Transaction hash of the broadcasted transaction.
- transaction_hash: