Blockchain Updates
Last updated
Last updated
Our API includes various endpoints that involve on-chain activities and updates, such as ownership verification and smart contract deployment. In order to provide smooth experience and maximum level of security, we employ cryptographic challenges and signatures tailored to each supported blockchain.
To create a new account for the customer and set it up for fund transfers with OffBlocks, we need to deploy a smart-contract account to the respective blockchain. The customer remains the ultimate owner of this account, and to manage funds for off-chain transactions on the user's behalf, we need them to sign a session key issued in the form of a cryptographic challenge. Similar to other endpoints, the challenge returned by the endpoint is a Base64-encoded string.
To submit a signed challenge, please use the corresponding endpoint.
If, for any reason, the original challenge is lost or cannot be signed immediately, you can fetch it again using a dedicated endpoint. If we encounter an error during signature validation via /sign
endpoint, a new challenge will be issued for you to retrieve.
Creates new account for the customer and generates a challenge to be signed in order to create a related blockchain account
Unique customer ID
Type of the account
Currencies of the account, at least one is required (ISO-4217)
Successful operation
Unique account ID
Unique customer ID
Unique account ID in a form of a valid on-chain address. This would normally correspond to account's SCA address
Account status
Type of the account
Currencies of the account, at least one is required (ISO-4217)
Date this account was created (ISO-8601)
Date this account was updated (ISO-8601)
Base64 encoded message provided by this API for owner to sign
Signs previously issued challenge to sign account creation or deletion transaction on-chain
Unique account ID
Unique signer account ID in a form of a valid on-chain address
Original base64 encoded challenge provided by this API for owner to sign
Base64 encoded signature
Successful operation
Retrieves challenge to sign account creation or deletion transaction on-chain. This operation invalidates any previously issued challenges for the account
Unique account ID
Successful operation
Base64 encoded message provided by this API for owner to sign