A small guide to show what you would need to integrate Maya.
Maya Protocol can perform an action when a specific instruction is sent to Maya’s address for a particular chain.
If you want to swap BTC to KUJI, you send a BTC transaction to Maya’s vault for Bitcoin, along with the memo: e.g. =:KUJI.KUJI:kujira1q6g84pxu4tpr26dwp39fdrrwtpcnak44sf0x7f
This memo specifies the asset you want to swap to, and the destination address. You don’t have to manually look for these vaults, we have an endpoint, from which you can fetch the inbound vaults for Maya, and the memo’s you need. An example. You want to swap 0.001 BTC to KUJI. Your Kujira address is: kujira1cd5kzygxfzylez8q4vak55pwj2z7a6hweat0zw.
You find the expected amount of KUJI you’ll get in 1e8 (in this case 23.52 KUJI), the address (inbound_address) you need to send your BTC to, and the memo you need to attack to the BTC transaction. That is everything you need, to swap using Maya Protocol.
You can add limits, affiliate fees and more to this endpoint as well.