Communication

Networks

Supported networks are mainnet and devnet all calls should start with the network you want to address, for instance, /mainnet/account/AUDud8tvyVZa67p3QY7XPRUTjRGnWQQ9Xv we call it {network} in the API description.

Accounts

Get account balance from address

GET /{network}/account/{address}

Path Parameters

Name Type Description Required
network string The identifier of the network.
address string The identifier of the account.

Create account from passphrase

POST /{network}/account

Path Parameters

Name Type Description Required
network string The identifier of the network.

Body Parameters

Name Type Description Required
passphrase string The passphrase of the account to be created.

Get backup from userid

GET /{network}/account/bip38/{userid}

Path Parameters

Name Type Description Required
network string The identifier of the network.
userid string The identifier of the account.

Create (or get if already existing) account and encrypt using bip38

POST /{network}/account/bip38

Path Parameters

Name Type Description Required
network string The identifier of the network.

Body Parameters

Name Type Description Required
bip38 string The password for the encrypted WIF.
userid string The identifier of the account.

If you want to create several accounts for one user, you need to use a different userid.

Transactions

Get last 50 transactions from address

GET /{network}/transactions/{address}

Path Parameters

Name Type Description Required
network string The identifier of the network.
address string The identifier of the account.

Create a transaction

POST /{network}/transaction

Path Parameters

Name Type Description Required
network string The identifier of the network.

Body Parameters

Name Type Description Required
recipientId string The recipient of the transaction.
amount int The amount of the transaction.
passphrase string The passphrase used to sign the transaction.

Create a transaction using bip38 for userid

POST /{network}/transaction/bip38

Path Parameters

Name Type Description Required
network string The identifier of the network.

Body Parameters

Name Type Description Required
recipientId string The recipient of the transaction.
amount string The amount of the transaction.
bip38 string The password for the encrypted WIF.
userid string The identifier of the account.

Broadcast transaction

POST /{network}/broadcast

Path Parameters

Name Type Description Required
network string The identifier of the network.

Body Parameters

Name Type Description Required
id string The identifier of the transaction.

TIP

Note that if the transaction has been created via the RPC it has been stored internally, as such only the transaction id is needed to broadcast/rebroadcast it. Otherwise if created outside of this RPC server, pass the whole transaction body as the POST payload.

Last Updated: 8/24/2018, 6:39:53 AM