Smart contract enabled user account access
Methods, systems, and devices for smart contract enabled user account access are described. A client application transmits, to a custodial token platform, a request to use a first amount of tokens associated with a user account at the custodial token platform for transacting with a blockchain address via a blockchain network. The client application receives a withdrawal message that is signed by a key associated with the custodial token platform. The client application broadcasts, via the blockchain network, a message including the signed withdrawal message. The message causes, within a single message on the blockchain network, withdrawal of the first amount of the tokens from a first smart contract address associated with the custodial token platform to a second smart contract address associated with a user of the user account and transfer of a second amount of tokens from the second smart contract address to the blockchain address.
1 . A method for performing blockchain messages using off-chain accounts, comprising:
withdrawing funds from a user account associated with a custodial token platform to transfer the funds from a first smart contract address associated with a user of the user account to a blockchain address in a single-step transaction, wherein completion of the single-step transaction occurs even when the first smart contract address has an amount of one or more tokens less than a first cost associated with the single-step transaction; and
processing a withdrawal message signed by a key associated with the custodial token platform, wherein the signed withdrawal message causes:
withdrawal of a first amount of the one or more tokens from the first smart contract address associated with the custodial token platform to a second smart contract address associated with the user of the user account, and
transfer of a second amount of one or more tokens from the second smart contract address to the blockchain address, wherein confirmation of the transfer occurs prior to the user account being deducted the first amount of the one or more tokens at the custodial token platform.
2 . The method of claim 1 , wherein:
the first amount withdrawn from the first smart contract address comprise message fees associated with the transfer of the second amount to the blockchain address; and
the second amount is supplied by the second smart contract address.
3 . The method of claim 1 , wherein:
the first amount withdrawn from the first smart contract address comprises the second amount transferred to the blockchain address; and
the second smart contract address supplies message fees associated with transacting with the blockchain address.
4 . The method of claim 1 , wherein the first amount withdrawn from the first smart contract address comprises both the second amount transferred to the blockchain address and message fees associated with transfer of the second amount to the blockchain address.
5 . The method of claim 1 , wherein the custodial token platform restricts at least the first amount associated with the user account at the custodial token platform from being exchanged or transmitted until the confirmation of the transfer.
6 . The method of claim 1 , wherein:
the withdrawal message is transmitted to a message bundler on a blockchain network, and
a field of the withdrawal message comprises an identifier for the first smart contract address and the signed withdrawal message to facilitate the withdrawal and the transfer.
7 . The method of claim 1 , further comprising:
transmitting, from a client application to the custodial token platform, a request that causes the second smart contract address to be deployed by the custodial token platform.
8 . The method of claim 1 , wherein the withdrawal message causes transfer of a non-fungible token from the blockchain address to the second smart contract address associated with the user account.
9 . An apparatus for performing blockchain messages using off-chain accounts, comprising:
one or more memories storing processor-executable code; and
one or more processors coupled with the one or more memories and individually or collectively operable to execute the code to cause the apparatus to:
withdraw funds from a user account associated with a custodial token platform to transfer the funds from a first smart contract address associated with a user of the user account to a blockchain address in a single-step transaction, wherein completion of the single-step transaction occurs even when the first smart contract address has an amount of one or more tokens less than a first cost associated with the single-step transaction; and
process a withdrawal message signed by a key associated with the custodial token platform, wherein the signed withdrawal message causes:
withdrawal of a first amount of the one or more tokens from the first smart contract address associated with the custodial token platform to a second smart contract address associated with the user of the user account, and
transfer of a second amount of one or more tokens from the second smart contract address to the blockchain address, wherein confirmation of the transfer occurs prior to the user account being deducted the first amount of the one or more tokens at the custodial token platform.
10 . The apparatus of claim 9 , wherein:
the first amount withdrawn from the first smart contract address comprise message fees associated with the transfer of the second amount to the blockchain address; and
the second amount is supplied by the second smart contract address.
11 . The apparatus of claim 9 , wherein:
the first amount withdrawn from the first smart contract address comprises the second amount transferred to the blockchain address; and
the second smart contract address supplies message fees associated with transacting with the blockchain address.
12 . The apparatus of claim 9 , wherein the first amount withdrawn from the first smart contract address comprises both the second amount transferred to the blockchain address and message fees associated with transfer of the second amount to the blockchain address.
13 . The apparatus of claim 9 , wherein the custodial token platform restricts at least the first amount associated with the user account at the custodial token platform from being exchanged or transmitted until the confirmation of the transfer.
14 . The apparatus of claim 9 , wherein:
the withdrawal message is transmitted to a message bundler on a blockchain network; and
a field of the withdrawal message comprises an identifier for the first smart contract address and the signed withdrawal message to facilitate the withdrawal and the transfer.
15 . The apparatus of claim 9 , wherein the one or more processors are further operable to execute the code to cause the apparatus to:
transmit, from a client application to the custodial token platform, a request that causes the second smart contract address to be deployed by the custodial token platform.
16 . The apparatus of claim 9 , wherein the withdrawal message causes transfer of a non-fungible token from the blockchain address to the second smart contract address associated with the user account.
17 . A non-transitory computer-readable medium storing code for performing blockchain messages using off-chain accounts, the code comprising instructions executable by one or more processors to:
withdraw funds from a user account associated with a custodial token platform to transfer the funds from a first smart contract address associated with a user of the user account to a blockchain address in a single-step transaction, wherein completion of the single-step transaction occurs even when the first smart contract address has an amount of one or more tokens less than a first cost associated with the single-step transaction; and
process a withdrawal message signed by a key associated with the custodial token platform, wherein the signed withdrawal message causes:
withdrawal of a first amount of the one or more tokens from the first smart contract address associated with the custodial token platform to a second smart contract address associated with the user of the user account, and
transfer of a second amount of one or more tokens from the second smart contract address to the blockchain address, wherein confirmation of the transfer occurs prior to the user account being deducted the first amount of the one or more tokens at the custodial token platform.
18 . The non-transitory computer-readable medium of claim 17 , wherein:
the first amount withdrawn from the first smart contract address comprise message fees associated with the transfer of the second amount to the blockchain address; and
the second amount is supplied by the second smart contract address.
19 . The non-transitory computer-readable medium of claim 17 , wherein:
the first amount withdrawn from the first smart contract address comprises the second amount transferred to the blockchain address; and
the second smart contract address supplies message fees associated with transacting with the blockchain address.
20 . The non-transitory computer-readable medium of claim 17 , wherein the first amount withdrawn from the first smart contract address comprises both the second amount transferred to the blockchain address and message fees associated with transfer of the second amount to the blockchain address.