New Address
Creates a new wallet address.
GET /api/v1/wallet/getnewaddressExample: curl -X GET "localhost:3000/api/v1/wallet/getnewaddress"
Fullnode required: YES
Parameters: NONE
Example Response
sV5QNeZvcGmDke91ncnbuoMLBJcpTZQCzsList addresses
Gets a list of all addresses available in the wallet.
GET /api/v1/wallet/listaddressesExample: curl -X GET "localhost:3000/api/v1/wallet/listaddresses"
Fullnode required: YES
Parameters: NONE
Example Response
[
{
"address": "sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod",
"unlocked": true
},
{
"address": "shMrmPKbCy2ZksH8B9odbnRWxQhdsSusDp",
"unlocked": true
}
]Get balances by account
Get the balances of all owned tokens for the given account address, including SCC.
GET /api/v1/wallet/getbalances/:accountExample: curl -X GET "localhost:3000/api/v1/wallet/getbalances/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| account | YES | The account address |
Example Response
[
{
"name": "StakeCubeCoin",
"ticker": "SCC",
"balance": 99999192,
"utxos": [
{
"address": "sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod",
"id": "5dbf84c3f2b6feac276928453e9080eb15f957bbf84779ebe842b3db678e470d",
"vout": 1,
"script": "76a914f870774783ff34265f03a859985ad44fa5ec4a4788ac",
"sats": 99999192,
"spent": false,
"mempool": false
}
]
},
{
"name": "SCP-Faucet",
"contract": "69a3bd3c864b69390e02cc43a0f9725d2736f8129cea527e333af472bc92a05b",
"ticker": "TEST",
"version": 2,
"balance": 100000000,
"unclaimed_balance": 0
}
]Send
Creates a transfer transaction to an destination address, using the given account's address.
The transaction fee/gas is paid from the given accounts SCC balance.
GET /api/v1/wallet/send/:address/:currency/:to/:amountExample: curl -X GET "localhost:3000/api/v1/wallet/send/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/69a3bd3c864b69390e02cc43a0f9725d2736f8129cea527e333af472bc92a05b/shMrmPKbCy2ZksH8B9odbnRWxQhdsSusDp/1"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The 'from' address |
| currency | YES | scc or the tokens unique contract id |
| to | YES | The receiver / the destination address |
| amount | YES | The amount to be transfered |
Example Response
{
"txid":"5dbf84c3f2b6feac276928453e9080eb15f957bbf84779ebe842b3db678e470d",
"rawTx":"0200000001A1E32542A010A59D128FE4736961FC091A8009FA2D92E4E0DDB326C7CD572139000000006B483045022100EF78DFF7E5782B12B6E4D67427668253B551E1B6CAE4DFBAC0A080CC5B66AB1302206FB2C9893A2DAB18EC8F877668AA802A94DCD887E5518F308A19F0A0C3E1A9530121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF020100000000000000756A4C72363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622073656E64203130303030303030302073684D726D504B624379325A6B73483842396F64626E525778516864735375734470D8DDF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}Stake (SCP-2)
Creates a stake transaction to claim the pending rewards of a given account and token.
GET /api/v1/wallet/stake/:address/:contractExample: curl -X GET "localhost:3000/api/v1/wallet/stake/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/69a3bd3c864b69390e02cc43a0f9725d2736f8129cea527e333af472bc92a05b"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The account address |
| contract | YES | The tokens unique contract id |
Example Response
{
"txid": "1a39509458c52bf19f56bd59298e083ccd5c51219169c9b19fdf99ef9508e2f7",
"rawTx": "02000000010D478E67DBB342E8EB7947F8BB57F915EB80903E45286927ACFEB6F2C384BF5D010000006B483045022100E8E674D7117C1F898858BD7BB1F42CDEDD2569DDED66FD5C1727ED1D48B380DB0220302C6F285ED66E733904E178F9B186BE0E7A87EE8BACA2D0796ADD0A15DDF2940121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF0201000000000000004A6A4C47363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622072656465656D5CDBF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}Create Collection
Creates a new SCP-4 Collection with custom parameters.
The deployment fee is paid from the given accounts SCC balance.
GET /api/v1/wallet/createcollection/:address/:name/:maxmints/:protectedExample: curl -X GET "localhost:3000/api/v1/wallet/createcollection/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/my_collection!/100/true"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The 'from' address |
| name | YES | The name of the collection |
| maxmints | YES | The maximum NFT mints possible (-1 for unlimited) |
| protected | YES | Allows or disallows burning NFTs (0 or 1) |
Example Response
{
"txid":"5dbf84c3f2b6feac276928453e9080eb15f957bbf84779ebe842b3db678e470d",
"rawTx":"0200000001A1E32542A010A59D128FE4736961FC091A8009FA2D92E4E0DDB326C7CD572139000000006B483045022100EF78DFF7E5782B12B6E4D67427668253B551E1B6CAE4DFBAC0A080CC5B66AB1302206FB2C9893A2DAB18EC8F877668AA802A94DCD887E5518F308A19F0A0C3E1A9530121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF020100000000000000756A4C72363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622073656E64203130303030303030302073684D726D504B624379325A6B73483842396F64626E525778516864735375734470D8DDF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}Mint NFT
Mints a new NFT in a specific collection, with custom NFT parameters.
The transaction fee/gas is paid from the given accounts SCC balance.
GET /api/v1/wallet/mintnft/:address/:contract/:name/:imageExample: curl -X GET "localhost:3000/api/v1/wallet/mintnft/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/b617e7a5f236ecbd3a734c855dd5040e8bf589e35e0d4e42c0ccadf5363c6075/First_NFT!/QmQC9Vz1kPoLBwn9zRADw1vrVdHAPooq9nDW4AgB43rzHa"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The 'from' address |
| collection | YES | The collection to mint in |
| name | YES | The NFT name |
| image | YES | The IPFS location of an image |
Example Response
{
"txid":"5dbf84c3f2b6feac276928453e9080eb15f957bbf84779ebe842b3db678e470d",
"rawTx":"0200000001A1E32542A010A59D128FE4736961FC091A8009FA2D92E4E0DDB326C7CD572139000000006B483045022100EF78DFF7E5782B12B6E4D67427668253B551E1B6CAE4DFBAC0A080CC5B66AB1302206FB2C9893A2DAB18EC8F877668AA802A94DCD887E5518F308A19F0A0C3E1A9530121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF020100000000000000756A4C72363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622073656E64203130303030303030302073684D726D504B624379325A6B73483842396F64626E525778516864735375734470D8DDF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}Burn NFT
Creates a burn transaction to permanently destroy an owned NFT.
GET /api/v1/wallet/burnnft/:address/:contract/:idExample: curl -X GET "localhost:3000/api/v1/wallet/burnnft/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/69a3bd3c864b69390e02cc43a0f9725d2736f8129cea527e333af472bc92a05b/b617e7a5f236ecbd3a734c855dd5040e8bf589e35e0d4e42c0ccadf5363c6075"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The account address |
| contract | YES | The unique ID of the collection |
| id | YES | The unique ID of the NFT to burn |
Example Response
{
"txid": "1a39509458c52bf19f56bd59298e083ccd5c51219169c9b19fdf99ef9508e2f7",
"rawTx": "02000000010D478E67DBB342E8EB7947F8BB57F915EB80903E45286927ACFEB6F2C384BF5D010000006B483045022100E8E674D7117C1F898858BD7BB1F42CDEDD2569DDED66FD5C1727ED1D48B380DB0220302C6F285ED66E733904E178F9B186BE0E7A87EE8BACA2D0796ADD0A15DDF2940121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF0201000000000000004A6A4C47363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622072656465656D5CDBF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}Transfer NFT
Creates a transfer transaction to an destination address, using the given account's address.
The transaction fee/gas is paid from the given accounts SCC balance.
GET /api/v1/wallet/transfernft/:address/:collection/:to/:idExample: curl -X GET "localhost:3000/api/v1/wallet/transfernft/sgu2PRDZv9yeqco6ouVG5WvPegZ7iVHFod/69a3bd3c864b69390e02cc43a0f9725d2736f8129cea527e333af472bc92a05b/shMrmPKbCy2ZksH8B9odbnRWxQhdsSusDp/b617e7a5f236ecbd3a734c855dd5040e8bf589e35e0d4e42c0ccadf5363c6075"
Fullnode required: YES
Parameters:
| Name | Mandatory | Description |
|---|---|---|
| address | YES | The 'from' address |
| collection | YES | The unique ID of the collection |
| to | YES | The receiver / the destination address |
| id | YES | The unique id of the NFT |
Example Response
{
"txid":"5dbf84c3f2b6feac276928453e9080eb15f957bbf84779ebe842b3db678e470d",
"rawTx":"0200000001A1E32542A010A59D128FE4736961FC091A8009FA2D92E4E0DDB326C7CD572139000000006B483045022100EF78DFF7E5782B12B6E4D67427668253B551E1B6CAE4DFBAC0A080CC5B66AB1302206FB2C9893A2DAB18EC8F877668AA802A94DCD887E5518F308A19F0A0C3E1A9530121037006754D12568A9F4C3C102E87FE1032C12BE13935E9BA18BB9F469B6470DDECFFFFFFFF020100000000000000756A4C72363961336264336338363462363933393065303263633433613066393732356432373336663831323963656135323765333333616634373262633932613035622073656E64203130303030303030302073684D726D504B624379325A6B73483842396F64626E525778516864735375734470D8DDF505000000001976A914F870774783FF34265F03A859985AD44FA5EC4A4788AC00000000"
}