Send bag of cells to blockchain
cURL
curl --request POST \ --url https://toncenter.com/api/v2/sendBoc \ --header 'Content-Type: application/json' \ --data ' { "boc": "<string>" } '
200
Example
{ "ok": true, "result": {} }
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())
OK
true