Skip to main content
POST
/
api
/
v2
/
sendBoc
Send BOC
curl --request POST \
  --url https://toncenter.com/api/v2/sendBoc \
  --header 'Content-Type: application/json' \
  --data '
{
  "boc": "<string>"
}
'
{
  "ok": true,
  "result": {}
}

SDK Usage

import asyncio

from toncenter.rest import ToncenterRestClient
from toncenter.types import Network

BOC = "te6ccgEBAQEAAgAAAA=="


async def main() -> None:
    async with ToncenterRestClient(network=Network.MAINNET) as client:
        result = await client.v2.send.send_boc(
            BOC,
        )
        print(result.model_dump_json(indent=4))


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

Body

application/json
boc
string
required

Response

OK

ok
boolean
required
Example:

true

result
object
required