ton-blockchain / ton-connect

Apache License 2.0
61 stars 19 forks source link

How can I append custom message to transaction? #30

Open OlegShalagin opened 1 year ago

OlegShalagin commented 1 year ago

I wanted to send some data with transaction and check it on server. Need help.

const defaultTx = {
        validUntil: Date.now() + 1000000,
        messages: [
            {
                address: '0:0####',
                amount: '20000000',
                payload: 'causes error',
                stateInit: 'causes error'
            }
        ],
        message: 'message ? does not appear'
    };

const result = await connector.sendTransaction(defaultTx);