Payment address
Lifehack: Big definition in URI protocol

Hey. I want to share with you a mini lifehack on how to transfer a big AA via a URI protocol.

Why is this needed?
All browsers have a limit on the length of the address. If we will try to transfer a large AA via the link, we will not succeed.

Usually, link looks like:

obyte-tn:data?app=definition&definition=%7B%22bounce_fees%22%3A%7B%22base%22%3A10000%7D%2C%22messages%22%3A%5B%7B%22app%22%3A%22payment%22%2C%22payload%22%3A%7B%22asset%22%3A%22base%22%2C%22outputs%22%3A%5B%7B%22address%22%3A%22%7Btrigger.address%7D%22%2C%22amount%22%3A%22%7Btrigger.output%5B%5Basset%3Dbase%5D%5D%20-%201000%7D%22%7D%5D%7D%7D%5D%7D


We need to put a link that will return json to us instead of json in definition(do not forget to escape the link). I recommend using github gist for this. It turned out in this for me
https://gist.githubusercontent.com/xJeneKx/ffe265e1c4aee332c6f9fff85001c521/raw/fc2aa5e7ffbe2f59b77f47820c27676a676bc986/test.json

And final link

obyte-tn:data?app=definition&definition=https%3A%2F%2Fgist.githubusercontent.com%2FxJeneKx%2Fffe265e1c4aee332c6f9fff85001c521%2Fraw%2Ffc2aa5e7ffbe2f59b77f47820c27676a676bc986%2Ftest.json


That's all. Now you can easily transfer big AA bypassing restrictions.

aa
autonomous_agent
obyte

Comments

Log in to comment