Method and system for exchange of value or tokens between blockchain networks
A cross-blockchain value transfer approval method including the steps of receiving a cross-blockchain value transfer request command that includes a first address on a first blockchain network, a first cryptocurrency type indication associated with the first blockchain network, a second address on a second blockchain network, a second cryptocurrency type indication associated with the second blockchain network, and a transfer quantity. The method further includes sending a transaction approval request to a second user, receiving a cross-chain respond command API request from the second user, and upon receiving the cross-chain response command approving the transfer, sending a command to initiate a value transfer to an exchange server.
1. A cross-blockchain value transfer approval method comprising the steps of:
receiving at an API gateway on a server a cross-blockchain value transfer request command comprising:
a first address on a first blockchain network;
a first cryptocurrency type indication associated with the first blockchain network;
a second address on a second blockchain network;
a second cryptocurrency type indication associated with the second blockchain network; and
a transfer quantity;
sending a transaction approval request to a second user associated with the second address responsive to the cross-blockchain value transfer request command, the transaction approval request comprising a request ID;
receiving at the API gateway a cross-chain respond command API request from the second user comprising:
the request ID; and
an indication of one of accepting or denying the value transfer; and
upon receiving the cross-chain response command comprising an indication of accepting the value transfer, sending a command to initiate a value transfer to an exchange server.
2. The cross-blockchain value transfer approval method of claim 1 wherein the API gateway is configured to log each API request.
3. The cross-blockchain value transfer approval method of claim 1 further comprising:
sending a raw transaction to a first user associated with the first address responsive to the cross-blockchain value transfer request command; and
receiving a signed transaction from the first user, the signed transaction being the raw transaction having been signed by a private key of the first user;
wherein sending the command to initiate a value transfer to an exchange server comprises sending the signed transaction.
4. A cross-blockchain value transfer approval method comprising the steps of:
receiving at an API gateway on a server a cross-blockchain value transfer request command comprising:
a first address on a first blockchain network;
a first cryptocurrency type indication associated with the first blockchain network;
a second address on a second blockchain network;
a second cryptocurrency type indication associated with the second blockchain network; and
a transfer quantity;
sending a raw transaction to a first user associated with the first address responsive to the cross-blockchain value transfer request command;
receiving a signed transaction from the first user, the signed transaction being the raw transaction having been signed by a private key of the first user;
sending a transaction approval request to a second user associated with the second address responsive to the cross-blockchain value transfer request command, the transaction approval request comprising a request ID;
receiving at the API gateway a cross-chain respond command API request from the second user comprising:
the request ID; and
an indication of one of accepting or denying the value transfer; and
upon receiving the cross-chain response command comprising an indication of accepting the value transfer, sending the signed transaction to an exchange server;
wherein the API gateway is configured to log each API request.