These HTTP endpoints are only available if the internal_api_secret
startup option is set when arweave-server
is started.
-
URL
/wallet
-
Method POST
-
Request Headers
X-Internal-Api-Secret
: must matchinternal_api_secret
An access code which can be used to sign transactions via POST /unsigned_tx
.
{"wallet_access_code":"UEhkVh0LBqfIj60-EB-yaDSrMpR2_EytWrY0bGJc_AZaiITJ4PrzRZ_xaEH5KBD4"}
Post a transaction to be signed and sent to the network.
-
URL
/unsigned_tx
-
Method POST
-
Request Headers
X-Internal-Api-Secret
: must matchinternal_api_secret
{
"last_tx": "", // Base64 encoded ID of the last transaction made by this wallet.
"target": "", // Base64 encoded SHA256 hash of recipient's public key. Empty for data transactions.
"quantity": "", // Decimal string representation of the amount of sent AR in winston. Empty for data transactions.
"data": "", // The Base64 encoded data being store in the transaction. Empty for transfer transactions.
"reward": "", // Decimal string representation of the mining reward AR amount in winston.
"wallet_access_code": "" // The wallet access code as returned by the POST /wallet endpoint.
}
A transaction ID (Base64 encoded hash of the signature).
{"id": "F8ITA-zojpRtUNnULnKasJCHL46rcqQBpSyqBekWnF30S7GCd58LcIcOXhYnYL6U"}