The oasis.deploy method deploys a service via an Oasis gateway.


deploy(...args, options)


  1. args - The positional constructor arguments for the service. Note that the type and number of these arguments depend on the service being constructed.
  2. options - Object (optional): The service deploy options. Must be the last argument in the deploy function call.


  • bytecode - string | Uint8Array: The bytecode for the service.
  • header - Object (optional): The deploy header. See the default values below.
  • gateway - OasisGateway (optional): The client backend to communicate with an oasis gateway.
  • gasLimit - string | number (optional): Gas limit to use for the transaction.
  • value - string | number (optional): Value to send in the transaction.


Service: The deployed service instance with all rpc endpoints attached.