Wallets

Get a Wallet

Method

1wallets.info

Body Parameters

Name Type Description Required
jsonrpc string The protocol version. Yes
id string The identifier of the request. Yes
method string The method name. Yes
params object The parameters of the request. Yes
params.address string The address of the wallet to be retrieved. Yes

Request

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "method": "wallets.info",
5 "params": {
6 "address": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo"
7 }
8}

Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "result": {
5 "address": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo",
6 "publicKey": "03287bfebba4c7881a0509717e71b34b63f31e40021c321f89ae04f84be6d6ac37",
7 "secondPublicKey": null,
8 "balance": 245100000000000,
9 "isDelegate": true
10 }
11}

Error Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "error": {
5 "code": "unique-error-code",
6 "message": "descriptive-error-message",
7 "data": "detailed-error-information"
8 }
9}

Get a Wallets Transactions

Method

1wallets.transactions

Body Parameters

Name Type Description Required
jsonrpc string The protocol version. Yes
id string The identifier of the request. Yes
method string The method name. Yes
params object The parameters of the request. Yes
params.address string The address of the transactions to be retrieved. Yes
params.offset int The offset of transactions to be retrieved. Yes

Request

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "method": "wallets.transactions",
5 "params": {
6 "address": "ANBkoGqWeTSiaEVgVzSKZd3jS7UWzv9PSo"
7 }
8}

Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "result": {
5 "count": 153,
6 "data": [
7 {
8 "id": "db1aa687737858cc9199bfa336f9b1c035915c30aaee60b1e0f8afadfdb946bd",
9 "blockId": "17184958558311101492",
10 "type": 0,
11 "amount": 245098000000000,
12 "fee": 0,
13 "sender": "APnhwwyTbMiykJwYbGhYjNgtHiVJDSEhSn",
14 "recipient": "AHXtmB84sTZ9Zd35h9Y1vfFvPE2Xzqj8ri",
15 "signature": "304402205fcb0677e06bde7aac3dc776665615f4b93ef8c3ed0fddecef9900e74fcb00f302206958a0c9868ea1b1f3d151bdfa92da1ce24de0b1fcd91933e64fb7971e92f48d",
16 "confirmations": 3,
17 "timestamp": {
18 "epoch": 0,
19 "unix": 1490101200,
20 "human": "2017-03-21T13:00:00Z"
21 }
22 }
23 ]
24 }
25}

Error Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "error": {
5 "code": "unique-error-code",
6 "message": "descriptive-error-message",
7 "data": "detailed-error-information"
8 }
9}

Create a Wallet

Method

1wallets.create

Body Parameters

Name Type Description Required
jsonrpc string The protocol version. Yes
id string The identifier of the request. Yes
method string The method name. Yes
params object The parameters of the request. Yes
params.passphrase string The passphrase of the wallet to be created. Yes

Request

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "method": "wallets.create",
5 "params": {
6 "passphrase": "this is a top secret passphrase"
7 }
8}

Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "result": {
5 "publicKey": "034151a3ec46b5670a682b0a63394f863587d1bc97483b1b6c70eb58e7f0aed192",
6 "address": "AGeYmgbg2LgGxRW2vNNJvQ88PknEJsYizC"
7 }
8}

Error Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "error": {
5 "code": "unique-error-code",
6 "message": "descriptive-error-message",
7 "data": "detailed-error-information"
8 }
9}

Get a BIP38 Wallet

Method

1wallets.bip38.info

Body Parameters

Name Type Description Required
jsonrpc string The protocol version. Yes
id string The identifier of the request. Yes
method string The method name. Yes
params object The parameters of the request. Yes
params.userId string The identifier of the wallet to be retrieved. Yes

Request

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "method": "wallets.bip38.info",
5 "params": {
6 "userId": "123"
7 }
8}

Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "result": {
5 "wif": "6PYTWME2aAJTx2NcRyS33zYrS79Hk7KiNbHZmGQWUYJYKWGZn4N36AdUMf"
6 }
7}

Error Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "error": {
5 "code": "unique-error-code",
6 "message": "descriptive-error-message",
7 "data": "detailed-error-information"
8 }
9}

Create a BIP38 Wallet

Method

1wallets.bip38.create

Body Parameters

Name Type Description Required
jsonrpc string The protocol version. Yes
id string The identifier of the request. Yes
method string The method name. Yes
params object The parameters of the request. Yes
params.bip38 string The bip38 of the wallet to be retrieved. Yes
params.userId string The identifier of the wallet to be retrieved. Yes

Request

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "method": "wallets.bip38.create",
5 "params": {
6 "userId": "123",
7 "bip38": "this is a top secret passphrase"
8 }
9}

Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "result": {
5 "publicKey": "022cf1c9de60c22c0b5a138b6545777cb2edaf82fe3906faa345580352000f84b6",
6 "address": "AL4z4quXFVPR4ybDHeJ67HfSEmFrguQ6e5",
7 "wif": "6PYTWME2aAJTx2NcRyS33zYrS79Hk7KiNbHZmGQWUYJYKWGZn4N36AdUMf"
8 }
9}

Error Response

1{
2 "jsonrpc": "2.0",
3 "id": "unique-request-id",
4 "error": {
5 "code": "unique-error-code",
6 "message": "descriptive-error-message",
7 "data": "detailed-error-information"
8 }
9}
Last updated 10 months ago
Edit Page
Share:
2022 © ARK.io | All Rights Reserved
An ARK.io Product