Web3 transfer protocol
Methods, systems, and devices for data management are described. A self-executing program of a blockchain distributed data store may receive a first message that includes indications of a sender address and a first amount of a first crypto token type to be received by a recipient address. The self-executing program may verify based at least in part on execution of the self-executing program, that the first message is validly signed by an operator associated with the self-executing program. The operator may be associated with a custodial token platform that verifies information and signs messages. The self-executing program may broadcast, after verifying that the first message is validly signed, one or more second messages that are configured to transfer the first amount of the first crypto token type to the recipient address.
1 . A method for data processing, comprising:
receiving, from a client application and at an operator, a request to transfer a first amount of a first crypto token type from a sender address to a recipient address;
validating the sender address using off-chain data and a second amount of a second crypto token type associated with the sender address via a blockchain distributed data store;
signing, using a private key associated with the operator and based at least in part on validating the sender address, a message that includes an indication of the sender address, the recipient address, the first amount of the first crypto token type, and metadata that references an off-chain charge associated with the sender address and the recipient address;
transmitting, to the client application, the signed message;
monitoring the blockchain distributed data store for blockchain transactions associated with the metadata;
detecting, via the blockchain distributed data store using the metadata, a message associated with the sender address that transfers the first amount of the first crypto token type to the recipient address, wherein the message includes the metadata; and
verifying, based at least in part on detecting the message, that the transfer of the first amount of the first crypto token type to the recipient address has occurred.
2 . The method of claim 1 , further comprising:
retrieving respective second amounts of one or more second crypto token types associated with the sender address via the blockchain distributed data store;
transmitting, to the client application, an indication of at least one recommended transfer type that is based at least in part on the respective second amounts; and
receiving, from the client application, an indication of a selection of a transfer type of the at least one recommended transfer type, wherein the message is signed after receiving the selection.
3 . The method of claim 1 , wherein the request includes an indication of a return address and the signed message includes an indication of the return address.
4 . The method of claim 1 , wherein signing the message comprises:
signing the message that includes a time value that indicates a time by which a blockchain transaction indicating the transfer of the first amount to the recipient address is to be included in a block on the blockchain distributed data store.
5 . The method of claim 1 , further comprising:
receiving a second request to transfer a third amount of a third crypto token type from a second sender address to a second recipient address; and
rejecting the second request based at least in part on the second recipient address or on a fourth crypto token type attributed to the second sender address via the blockchain distributed data store.
6 . The method of claim 5 , wherein rejecting the second request comprises:
transmitting, to the client application, an indication that the second request is rejected, refraining from signing a second message, or both.
7 . The method of claim 1 , wherein the metadata comprises a unique identifier that references the off-chain charge that is an agreement between a first entity associated with the sender address and a second entity associated with the recipient address and the message is associated with a blockchain transaction and the unique identifier, the unique identifier being recorded on a blockchain ledger of the blockchain distributed data store.
8 . An apparatus for data processing, comprising:
a processor;
memory coupled with the processor; and
instructions stored in the memory and executable by the processor to cause the apparatus to:
receive, from a client application and at an operator, a request to transfer a first amount of a first crypto token type from a sender address to a recipient address;
validate the sender address using off-chain data and a second amount of a second crypto token type associated with the sender address via a blockchain distributed data store;
sign, using a private key associated with the operator and based at least in part on validating the sender address, a message that includes an indication of the sender address, the recipient address, the first amount of the first crypto token type, and metadata that references an off-chain charge associated with the sender address and the recipient address;
transmit, to the client application, the signed message;
monitor the blockchain distributed data store for blockchain transactions associated with the metadata;
detect, via the blockchain distributed data store using the metadata, a message associated with the sender address that transfers the first amount of the first crypto token type to the recipient address, wherein the message includes the metadata; and
verify, based at least in part on detecting the message, that the transfer of the first amount of the first crypto token type to the recipient address has occurred.
9 . The apparatus of claim 8 , wherein the instructions are further executable by the processor to cause the apparatus to:
retrieve respective second amounts of one or more second crypto token types associated with the sender address via the blockchain distributed data store;
transmit, to the client application, an indication of at least one recommended transfer type that is based at least in part on the respective second amounts; and
receive, from the client application, an indication of a selection of a transfer type of the at least one recommended transfer type, wherein the message is signed after receiving the selection.
10 . The apparatus of claim 8 , wherein the request includes an indication of a return address and the signed message includes an indication of the return address.
11 . The apparatus of claim 8 , wherein the instructions to sign the message are executable by the processor to cause the apparatus to:
sign the message that includes a time value that indicates a time by which a blockchain transaction indicating the transfer of the first amount to the recipient address is to be included in a block on the blockchain distributed data store.
12 . The apparatus of claim 8 , wherein the metadata comprises a unique identifier that references the off-chain charge that is an agreement between a first entity associated with the sender address and a second entity associated with the recipient address, and the message is associated with a blockchain transaction and the unique identifier, the unique identifier being recorded on a blockchain ledger of the blockchain distributed data store.
13 . A non-transitory computer-readable medium storing code for data processing, the code comprising instructions executable by a processor to:
receive, from a client application and at an operator, a request to transfer a first amount of a first crypto token type from a sender address to a recipient address;
validate the sender address using off-chain data and a second amount of a second crypto token type associated with the sender address via a blockchain distributed data store;
sign, using a private key associated with the operator and based at least in part on validating the sender address, a message that includes an indication of the sender address, the recipient address, the first amount of the first crypto token type, and metadata that references an off-chain charge associated with the sender address and the recipient address;
transmit, to the client application, the signed message;
monitor the blockchain distributed data store for blockchain transactions associated with the metadata;
detect, via the blockchain distributed data store using the metadata, a message associated with the sender address that transfers the first amount of the first crypto token type to the recipient address, wherein the message includes the metadata; and
verify, based at least in part on detecting the message, that the transfer of the first amount of the first crypto token type to the recipient address has occurred.
14 . The non-transitory computer-readable medium of claim 13 , wherein the instructions are further executable by the processor to:
retrieve respective second amounts of one or more second crypto token types associated with the sender address via the blockchain distributed data store;
transmit, to the client application, an indication of at least one recommended transfer type that is based at least in part on the respective second amounts; and
receive, from the client application, an indication of a selection of a transfer type of the at least one recommended transfer type, wherein the message is signed after receiving the selection.
15 . The non-transitory computer-readable medium of claim 13 , wherein the request includes an indication of a return address and the signed message includes an indication of the return address.
16 . The non-transitory computer-readable medium of claim 13 , wherein the instructions to sign the message are executable by the processor to:
sign the message that includes a time value that indicates a time by which a blockchain transaction indicating the transfer of the first amount to the recipient address is to be included in a block on the blockchain distributed data store.
17 . The non-transitory computer-readable medium of claim 13 , wherein the metadata comprises a unique identifier that references the off-chain charge that is an agreement between a first entity associated with the sender address and a second entity associated with the recipient address and the message is associated with a blockchain transaction and the unique identifier, the unique identifier being recorded on a blockchain ledger of the blockchain distributed data store.