Import
[Source]
(Added by the [Import amendment][].)
Example
Section titled “Example”{ "TransactionType": "Import", "Sequence": 0, "Fee": "0", "Account": "rUn84CUYbNjRoTQ6mSW7BVJPSVJNLb1QLo", "Blob" : "DEADBEEF"}Fields
Section titled “Fields”| Field | JSON Type | Internal Type | Description |
|---|---|---|---|
Blob | String | Blob | Hex value representing an XPOP |
Issuer | String | AccountID | (Optional) Address that can be used inside the Hook. |
Destination | String | AccountID | (Optional) Address that can be used inside the Hook. |
Error Cases
Section titled “Error Cases”- If the account is Non Activated then the
Sequencemust be 0 and theFeemust also be 0 - If the account is Activated then the
Sequenceand theFeeare calculated using the standard method. - If the
Issuerfield is present then theFeemust be calculated using the standard method.
It is recommended that if you use a SignerList or RegularKey to sign your transactions that you key your accounts FIRST before attempting to B2M XAH .
- If the inner (xpop) transaction is
AccountSetthe mainet existing flags will be transfered to the new network. - If the inner (xpop) transaction is
SetRegularKeywith theRegularKeyfield omitted or empty, and a signers list does not exist for the account then thelsfDisableMasterflag will be set on the account. - If the inner (xpop) transaction is
SetRegularKeythen thelsfPasswordSpentflag will be set on the account. - TicketSequence is not available on
Import
Importing for the Issuer
Section titled “Importing for the Issuer”For issuers, there are additional steps to follow before their asset holders can import transactions.
Firstly, issuers need to install a hook. There are two options for this: B2MNFToken or B2MPayment.
B2MNFToken
Section titled “B2MNFToken”A NFTokenBurn transaction on mainnet will result in a URITokenMint transaction on the network.
c hook: https://example.com
B2MPayment
Section titled “B2MPayment”A Payment transaction on mainnet to the Issuer will result in a Payment transaction from the Issuer on the network.
c hook: https://example.com
Please note that the process of importing for the issuer involves specific transaction types and requires careful configuration. Always ensure that the hooks are correctly set up and that the transactions are valid for the intended operations.