Transfer
API Documentation for Cosmos Transfer Transaction
Parameters
network:
string- required: Cosmos network to build transaction for
- Allowed:
testnet,mainnet
from_account_address:
string- required: The address sending the funds
to_account_address:
string- required: The address receiving the funds
amount:
string- required: Amount to transfer
pubkey:
string- This value will be retrieved from the chain but if you're using a fresh account (that does not have any outgoing activity), then this information is not available and it requires the user to pass it.
pubkey_type:
string- enum: Type of public key of the sender.
- Allowed:
secp256k1,multisig
gas_limit:
string- Gas limit for the transaction. This is required if pubkey_type is multisig.
gas_price:
string- Gas price for the transaction. This is required if pubkey_type is multisig.
Response Codes
- 201: Transfer transaction created
- 400: Bad request
- 422: Unprocessable entity
Example of Using cURL
curl --request POST \
--url https://api.figment.io/cosmos/transfer \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here' \
--data '{
"network": "testnet"
}'