Skip to main content
POST
/
api
/
v3
/
message
Send Message
curl --request POST \
  --url https://toncenter.com/api/v3/message \
  --header 'Content-Type: application/json' \
  --data '
{
  "boc": "<string>"
}
'
{
  "message_hash": "<string>",
  "message_hash_norm": "<string>"
}

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network
from toncenter.rest.v3.models import V2SendMessageRequest

BOC = "te6ccgEBAQEAAgAAAA=="


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        result = await client.v3.api_v2.send_message(
            body=V2SendMessageRequest(boc=BOC),
        )
        print(result.model_dump_json(indent=4))


if __name__ == "__main__":
    asyncio.run(main())

Body

application/json
boc
string

Response

OK

message_hash
string
message_hash_norm
string