/build/rpc / contracts / forward
forward.import_acceptance
forward.import_acceptance {} Import a forward contract acceptance payload. Arguments: 1. acceptance (json object, required) Acceptance payload { } Result: { (json object) "offer_id" : "hex", (string) Unique offer identifier "state" : "str" (string) Contract state after import } Examples: > bitcoin-cli forward.import_acceptance "{...acceptance json...}"
Signature
forward.import_acceptance(acceptance: object) → any Code samples
curl --user "$RPC_USER:$RPC_PASS" \
--data-binary '{"jsonrpc":"1.0","id":"docs","method":"forward.import_acceptance","params":[{}]}' \
-H 'content-type: text/plain;' \
http://127.0.0.1:8332/ Parameters
| Name | Type | Req. | Description |
|---|---|---|---|
| acceptance | object | yes | Acceptance payload { } |
Result
Type: any
{ (json object) "offer_id" : "hex", (string) Unique offer identifier "state" : "str" (string) Contract state after import }
Source: services/core-node/bcore/src/wallet/rpc/contracts.cpp:14786
C++ symbol: forward_import_acceptance