flow-account-api
API for flow mainnet/testnet address creation
/v1/address
GET
Summary
Get accounts
Description
Submit public key to receive accounts
Responses
Code | Description | Schema |
---|---|---|
200 | return 200 with the array of accounts. | [ [ models.Wallet ] ] |
POST
Summary
Create an address
Description
create address use public key
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
public_key | body | public key | Yes | string |
weight | body | weitgh | Yes | integer |
sign_algo | body | sign algorithm | Yes | integer |
hash_algo | body | hash algorithm | Yes | integer |
Responses
Code | Description | Schema |
---|---|---|
200 | return 200 with the transaction id. | controllers.WalletReturn |
/v1/address/testnet
GET
Summary
Get accounts
Description
Submit public key to receive accounts
Responses
Code | Description | Schema |
---|---|---|
200 | return 200 with the array of accounts from testnet. | [ [ models.Wallet ] ] |
POST
Summary
Create an address
Description
use public key to create address
Parameters
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
public_key | body | public key | Yes | string |
weight | body | weitgh | Yes | integer |
sign_algo | body | sign algorithm | Yes | integer |
hash_algo | body | hash algorithm | Yes | integer |
Responses
Code | Description | Schema |
---|---|---|
200 | return 200 with the transaction id. | controllers.WalletReturn |
Models
controllers.WalletReturn
Name | Type | Description | Required |
---|---|---|---|
txId | string | No |
models.Wallet
Name | Type | Description | Required |
---|---|---|---|
address | string | No | |
created_at | string | No | |
hash_algo | integer | No | |
id | integer | No | |
public_key | string | No | |
sign_algo | integer | No | |
updated_at | string | No |