"https://api.blockcypher.com/v1/eth/main/blocks/b83ac85e42af87b8100bb1d653288e7649feb4b55fa6a1f9505c56e8f8b12025?txstart=20&limit=20" code example
Example 1: "https://api.blockcypher.com/v1/eth/main/blocks/b83ac85e42af87b8100bb1d653288e7649feb4b55fa6a1f9505c56e8f8b12025?txstart=20&limit=20"
Copy to Clipboard# generate bech32 p2wpkh
curl -X POST https://api.blockcypher.com/v1/btc/test3/addrs?bech32=true
{
"private": "516c110f271f2b26ad8ed2d72c469d2dde0db5030241926b6b0388c602cf572c",
"public": "023766804d9c34ead560be1d1f819127cb2636305ac9ba2f76c176efd2b3913a25",
"address": "tb1q2u0dzlwf805qy62w099p06f8z5nxz5kk34a456",
"wif": "cQJyYH6rjkV2W9jR9PjnJftBmGt93Yi4gpn494oEAiWvoUJoEpCs"
}
Example 2: "https://api.blockcypher.com/v1/eth/main/blocks/b83ac85e42af87b8100bb1d653288e7649feb4b55fa6a1f9505c56e8f8b12025?txstart=20&limit=20"
Copy to Clipboardcurl -X POST https://api.blockcypher.com/v1/btc/test3/addrs
{
"private": "81ee75559d37cbe4b7cbbfb9931ab1ba32172c5cdfc3ac2d020259b4c1104198",
"public": "0231ff9ec76820cb36b69061f6ffb125db3793b4aced468a1261b0680e1ef4883a",
"address": "mvpW7fMSi1nbZhJJDySNS2PUau8ppnu4kY",
"wif": "cRwGhRjCuuNtPgLcoYd1CuAqjFXCV5YNCQ1LB8RsFCvu61VfSsgR"
}
Example 3: "https://api.blockcypher.com/v1/eth/main/blocks/b83ac85e42af87b8100bb1d653288e7649feb4b55fa6a1f9505c56e8f8b12025?txstart=20&limit=20"
Copy to Clipboard# Since this is a new address, I need to fund underlying bcy original_address
# to enable issuance transaction (otherwise no money available for mining fees)
# Going to use a faucet thanks to testnet
curl -d '{"address": "ByJUiocpifLPaYVTALpA7JYa9DxpLQwte4", "amount": 1000000}' https://api.blockcypher.com/v1/bcy/test/faucet?token=YOURTOKEN
{"tx_ref": "e7ca58724100f20b81e82ac24cb83cc112627be9cbfd2d09b96a87fbafe9e636"}
# using same underlying (now-funded address) to issue 1000 assets
# also could have used a different, funded bcy address to issue assets to a new oap_address
curl -d '{"from_private": "0eb369746401c3369517239314a6bc0f2bda6124a4dda15643887f86dc0590cf", "to_address": "1ByJUiocpifLPaYVTALpA7JYa9DxpGxXKKP", "amount": 1000, "metadata": "1a2b3c4d5e6f"}' https://api.blockcypher.com/v1/bcy/test/oap/issue?token=YOURTOKEN
{
"ver": 1,
"assetid": "1Npqwstp55vgThp4pwAC9UhYkvPJ28b2Ui",
"hash": "56253cffa1b3508d106391da3646cda2aee0bd080db427321c77ad11739e4239",
"received": "2015-10-25T05:41:45.092075094Z",
"double_spend": false,
"oap_meta": "1a2b3c4d5e6f",
"inputs": [],
"outputs": [
{
"address": "1ByJUiocpifLPaYVTALpA7JYa9DxpGxXKKP",
"value": 1000,
"original_output_index": 0
}
]
}