Sending Transactions
This page goes over how to build an inbound MAYAChain transaction for each chain type.
Last updated
Was this helpful?
This page goes over how to build an inbound MAYAChain transaction for each chain type.
Last updated
Was this helpful?
Confirm you have:
You are ready to make the transaction and swap via MAYAChain.
MAYAChain does NOT currently support BTC Taproot. User funds will be lost if sent to or from a taproot address!
Inbound transactions should not be delayed for any reason else there is risk funds will be sent to an unreachable address. Use standard transactions, check the before sending and use the recommended to ensure transactions are confirmed in the next block to the latest Inbound_Address
.
Do not use HD wallets that forward the change to a new address, because MAYAChain IDs the user as the address in VIN0. The user must keep their VIN0 address funded for refunds.
Override randomised VOUT ordering; MAYAChain requires specific output ordering.
ETH is sent and received as an internal transaction. Your wallet may not be set to read internal balances and transactions
Using @cosmjs build/broadcast the TX.
To initiate a $CACAO-> $ASSET swap a MsgDeposit
must be broadcasted to the MAYAChain blockchain. The MsgDeposit
does not have a destination address, and has the following properties. The full definition can be found .
If you are using Javascript, is the recommended package to build and broadcast custom message types. .
MsgDeposit
must also be broadcasted when swapping from .
Generate codec files. To build/broadcast native transactions in Javascript/Typescript, the protobuf files need to be generated into js types. The below script uses pbjs
and pbts
to generate the types using the relevant files from the MAYANode repo. Alternatively, the .js
and .d.ts
files can be downloaded directly from the .